package com.tencreat.domain.mall.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author zixin
 */
@Data
public class MallMessageApiRecordDTO {

    @ApiModelProperty("页数")
    private Integer current = 1;

    @ApiModelProperty("每页显示数量")
    private Integer size = 10;

    @ApiModelProperty("app用户uuid")
    @NotNull(message = "uuid不能为空")
    private Long uuid;

    @ApiModelProperty("时间之前")
    @NotNull(message = "时间之前不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

}
